﻿using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.Xna.Framework;

namespace XNAGuiLib
{
    public class Statics
    {

        #region Static Field - ZeroVector2
        protected static Vector2 _zeroVector2 = new Vector2(0, 0);
        /// <summary>
        /// returns a static Vector(0, 0) object
        /// </summary>
        public static Vector2 ZeroVector2
        {
            get
            {
                return _zeroVector2;
            }
        }
        #endregion

        #region Static Field - V2_17x17
        protected static Vector2 _v2_17x17 = new Vector2(17, 17);
        /// <summary>
        /// returns a static Vector(17, 17) object
        /// </summary>
        public static Vector2 V2_17x17
        {
            get
            {
                return _v2_17x17;
            }
        }
        #endregion

        #region Static Field - V2_67x17
        protected static Vector2 _v2_67x17 = new Vector2(67, 17);
        /// <summary>
        /// returns a static Vector(67, 17) object
        /// </summary>
        public static Vector2 V2_67x17
        {
            get
            {
                return _v2_67x17;
            }
        }
        #endregion

        #region Static Field - V2_134x17
        protected static Vector2 _v2_134x17 = new Vector2(134, 17);
        /// <summary>
        /// returns a static Vector(134, 17) object
        /// </summary>
        public static Vector2 V2_134x17
        {
            get
            {
                return _v2_134x17;
            }
        }
        #endregion



        #region Static Method - V2(float value1, float value2)
        public static Vector2 V2(float value1, float value2)
        {
            return new Vector2(value1, value2);
        }
        #endregion

        #region Static Method - V3(float value1, float value2, float value3)
        public static Vector3 V3(float value1, float value2, float value3)
        {
            return new Vector3(value1, value2, value3);
        }
        #endregion



        #region Static Method - Count(char ch, string str)
        public static int Count(char ch, string str)
        {
            int cnt = 0;
            foreach (char c in str)
            {
                if (c.Equals(ch))
                    cnt++;
            }

            return cnt;
        }
        #endregion
    }
}